<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>随机的颜色值</title>
</head>

<body>

</body>
<script>
  "use strict"; {
    function getRandomColor() {
      return `#${Math.floor(Math.random() * 0xffffff).toString(16)}`;
    };
  };
</script>

</html>